package a.e.b.a;

import a.e.b.c.a;
import a.e.b.c.o;
import a.e.b.c.v;
import a.j.jg;
import a.j.se;

import java.util.Map;

public class cb
  implements v
{
  static final Map a = a.e.a.eb.b;
  static final Map b = a.e.a.eb.c;
  public static boolean c;
  
  public void a(a.e.b.c.eb parameb)
    throws a
  {
    Object localObject = parameb.a();
    if ((i.i) || ((localObject instanceof jg)))
    {
      jg localjg = (jg)localObject;
      parameb.e().a("NodeLabel", "http://www.yworks.com/xml/graphml");
      a(localjg, parameb.e(), parameb.d());
      parameb.e().b();
      parameb.a(true);
    }
  }
  
  protected void a(jg paramjg, a.e.b.c.cb paramcb, o paramo)
    throws a
  {
    boolean bool = i.i;
    String str1 = a(paramjg, paramo);
    if (str1 != null) {
      paramcb.c("modelName", str1);
    }
    if (!bool)
    {
      if (127 != paramjg.D())
      {
        str2 = b(paramjg, paramo);
        if (bool) {
          break label88;
        }
        if (str2 != null) {
          paramcb.c("modelPosition", str2);
        }
      }
      paramcb.c("autoSizePolicy", a.e.a.eb.b(paramjg.Z()));
      label88:
      if (bool) {}
    }
    else
    {
      if (paramjg.cb() != 4.0D) {
        paramcb.a("borderDistance", paramjg.cb());
      }
      y.a(paramcb, paramjg, paramo);
    }
    String str2 = paramjg.H();
    if ((bool) || (str2 != null)) {
      if (!bool)
      {
        if (str2.length() > 0)
        {
          paramcb.c(str2);
          if (bool) {
            return;
          }
        }
      }
      else {
        if (i.h == 0) {
          break label182;
        }
      }
    }
    paramcb.a("hasText", false);
    label182:
    b(paramjg, paramcb, paramo);
  }
  
  protected void b(jg paramjg, a.e.b.c.cb paramcb, o paramo)
    throws a
  {
    if (127 == paramjg.D())
    {
      paramcb.a("LabelModel", "http://www.yworks.com/xml/graphml");
      paramo.b(paramjg.a());
      paramcb.b();
      paramcb.a("ModelParameter", "http://www.yworks.com/xml/graphml");
      paramo.b(paramjg.e());
      paramcb.b();
    }
  }
  
  protected String a(jg paramjg, o paramo)
  {
    if (127 == paramjg.D()) {
      return "custom";
    }
    return (String)b.get(new Byte(paramjg.D()));
  }
  
  protected String b(jg paramjg, o paramo)
  {
    return (String)a.get(new Byte(paramjg.C()));
  }
  
  public static class a_
    implements v
  {
    public static boolean a;
    
    public void a(a.e.b.c.eb parameb)
      throws a
    {
      boolean bool = i.i;
      Object localObject = parameb.a();
      if (!bool) {
        if ((localObject instanceof se))
        {
          a((se)localObject, parameb.e(), parameb.d());
          parameb.a(true);
        }
      }
      if ((bool) || ((i.h != 0) && ((localObject instanceof se.a_))))
      {
        a((se.a_)localObject, parameb.e(), parameb.d());
        parameb.a(true);
      }
    }
    
    protected void a(se.a_ parama_, a.e.b.c.cb paramcb, o paramo)
    {
      paramcb.a("SmartNodeLabelModelParameter", "http://www.yworks.com/xml/graphml");
      paramcb.a("nodeRatioX", parama_.a());
      paramcb.a("nodeRatioY", parama_.b());
      paramcb.a("labelRatioX", parama_.c());
      paramcb.a("labelRatioY", parama_.d());
      paramcb.a("offsetX", parama_.e());
      paramcb.a("offsetY", parama_.f());
      paramcb.a("upX", parama_.g());
      paramcb.a("upY", parama_.h());
      paramcb.b();
    }
    
    protected void a(se paramse, a.e.b.c.cb paramcb, o paramo)
    {
      paramcb.a("SmartNodeLabelModel", "http://www.yworks.com/xml/graphml");
      paramcb.a("distance", paramse.b());
      paramcb.b();
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.b.a.cb

 * JD-Core Version:    0.7.0.1

 */